<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* ul{
            list-style-type:none;
        } */
    </style>
    <script src="./jquery-3.5.0/jquery-3.5.0.min.js"></script>
    <script>
        $(function(){
            $('ul').on('mouseover',function(){
                $(event.target).css('background-color','pink');
            })
            $('ul').on('mouseout',function(){
                $(event.target).css('background-color','white');
            })
        })

    </script>
</head>
<body>
    <ul>
        <li>我是老大</li>
        <li>我是老二</li>
        <li>我是老三</li>
        <li>我是老四</li>
        <li>我是老五</li>
    </ul>
</body>
</html>